package cn.vivi.blog.client;

import cn.vivi.common.entity.Classes;
import cn.vivi.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("classes-service")
public interface ClassesServiceClient {

    @GetMapping("/classes/{id}")
    Result<Classes> findById(@PathVariable("id") String id);

}
